FROM xa.repo.ndp.com:5000/paas/u14-ssh-nginx1.4.6:1.0.3

MAINTAINER PaaS/allen

ENV TAR_FILE walle-web.tar
ENV NGINX_DIR /etc/nginx
ENV TARGET_DIR /ndp/app/walle-web

# copy file
WORKDIR $TARGET_DIR/
ADD /$TAR_FILE $TARGET_DIR/

# modify nginx conf
WORKDIR $NGINX_DIR/
ADD /facebook.yeahmobi.com.conf $NGINX_DIR/conf.d/
RUN rm -f sites-enabled/*

ADD /paas-bootstrap.sh /
CMD bash /paas-bootstrap.sh
